-- GENERATED SPELL FOR [Rot Hide Savage] --


function spell0_1942(pUnit, Event) --@Curse of Thule,Self--
pUnit:FullCastSpellOnTarget(3237,pUnit)
pUnit:RegisterEvent('Sorts_1942', 2000, 1)
end

function spell1_1942(pUnit, Event) --@Savage Rage,Self--
pUnit:FullCastSpellOnTarget(3258,pUnit)
pUnit:RegisterEvent('Sorts_1942', 4307, 1)
end

function Sorts_1942(pUnit, Event)
local choix_sorts_1942 = math.random(0, 1)
if choix_sorts_1942 == 0 then
pUnit:RegisterEvent('spell0_1942', 1, 1)
end
if choix_sorts_1942 == 1 then
pUnit:RegisterEvent('spell1_1942', 1, 1)
end
end

function mob1942_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1942', math.random(1500, 3000), 1)
end

function mob1942_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1942_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1942_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1942, 1, 'mob1942_Action')
RegisterUnitEvent(1942, 2, 'mob1942_Leave')
RegisterUnitEvent(1942, 3, 'mob1942_Kill')
RegisterUnitEvent(1942, 4, 'mob1942_Die')
